package com 
{
	import flash.events.TextEvent;
	import flash.text.TextFieldType;
	import flash.text.TextFormat;
	/**
	 * ...
	 * @author Matthew Ladouceur
	 */
	public class flaInputText extends FlaText
	{
		
		public function flaInputText(text:String = "", format:TextFormat = null) 
		{
			super(text, format);
			
			_text.mouseEnabled = true;
			_text.background = true;
			_text.type = TextFieldType.INPUT;
			_text.selectable = true;
			
			_text.addEventListener(TextEvent.TEXT_INPUT, onInput);
		}
		
		private function onInput(e:TextEvent):void {
			dispatchEvent(e);
		}
		
	}

}